home *** CD-ROM | disk | FTP | other *** search
- SETUP
-
- Jeff Prosise
- Command PC Magazine Vol 5, No 12
- Copyright 1986 Ziff-Davis Publishing Company
-
- Purpose
- Permits menu-oriented selection and immediate transmission of printer
- control codes from within a running application program.
-
-
- SYNTAX SETUP [[d:] [path] filename] [/c codes] [/Pn]
-
- filename Name of a printer menu file to load
- /C codes Transmit control codes defined in codes
- /Pn Number of the LPT port to direct output to (1,2,or 3;
- default=1)
-
-
- DESCRIPTION
-
- SETUP can be used in either of two ways. If it's run with a /C switch,
- it immediately outputs a code string to the printer. The code string can
- contain any mix of decimal, hexadecimal, and ASCII characters. ASCII
- characters are enclosed in quotation marks, while hexadecimal codes are
- preceded by the characters "Ox." For example, the command
-
- SETUP /C 13,10,"PC Magazine",0x0D,0x0A
-
- sends "PC Magazine" to LPT 1 sandwiched between two carriage
- return/line-feed characters. If SETUP is run without the /C switch, it
- makes itself memory resident. Pressing Ctrl and the right Shift key pops
- up a window containing a menu of printer control options. You specify
- what these options are by creating a text file called a printer menu
- file (PMF) and passing SETUP the name of the file on the command line.
- Once the window pops up, you can select control codes from the menus or
- enter codes directly. PgUp and PgDn display other menu pages, and Up and
- Down Arrow keys move the highlight. Enter transmit the highlighted
- control code, as does the function key to the left of the menu option.
- Press the / (slash) key to enter control codes directly. You can change
- where the printer output goes by pressing the * key. The LPT port
- currently selected is displayed in the lower-right corner of the window.
- Esc closes the window. The source code for SETUP is available on
- ZiffNet.
-
- EXAMPLES
-
- To reset to LaserJet printer, type
-
- SETUP /C 27,"E"
-
- To set an Epson or IBM dot-matrix printer attached to LPT3 to print
- condensed type, type
-
- SETUP /C 0x0F /P3
-
- To install SETUP as a TSR and load the menu file LASERJET.PMF, type
-
- SETUP LASERJET.PMF
-
- ** Special Note: This utility is also a mentioned in the Ziff-Davis Press
- book "PC Magazine's DOS 5 Techniques and Utilities" by Jeff Prosise. Both
- this DOCumentation file and in the book's utility reference stand as correct.